<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>个人中心</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="import" href="indexs.html" id="page1">
    <script type="text/javascript" src="layui/layui.js"></script>
</head>

<body>
<script type="text/javascript">
    document.write(page1.import.body.innerHTML);
</script>
<!--<div class="layui-row layui-bg-green">
    <div class="layui-col-xs12 " style="font-size: 20px; margin-left: 30px; text-align: center;">
        <div class="layui-col-xs10 " style="font-size: 23px; text-align: center;">个人中心</div>
    </div>
</div>-->

<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
<br />
<div class="layui-row">
    <div class="layui-col-xs12" style="margin-top: 50px; float: left; margin-left: 50px;" >
        <a href="mycentre.html"><i class="layui-icon layui-icon-return" style="font-size: 35px;"></i></a>
    </div>
    <div class="layui-col-xs12" style="text-align: center; margin-top: 50px;" >
        <i class="layui-icon layui-icon-rmb" style="font-size: 70px; color: orange;"></i>
    </div>
    <div class="layui-col-xs12" style="text-align: center; margin-top: 30px; font-size: 16px">
        我的零钱
    </div>
    <div class="layui-col-xs12" style="text-align: center; margin-top: 40px; font-size: 35px;font-weight: 700;" id="balance">
        <!--￥&nbsp;<label>1000</label>-->
    </div>
    <div class="layui-col-xs12" style="text-align: center; margin-top: 40px; font-size: 16px">
        <button type="button" class="layui-btn layui-btn-sm">取现</button>
    </div>
</div>

<script>
    $(function () {
        $.ajax({
            url:"CoachWallet/showBalance",
            data:{
                tId:1
            },
            success:function (data) {
                var content="";
                for (var i = 0; i < data.length; i++){
                    content+='￥&nbsp;<label>'+data[i].tBanlance+'</label>'
                }
                $("#balance").html(content);
            }
        })
    })
</script>
<!-- 你的HTML代码 -->
</body>
</html>